<?php

/**
 * Opis klasy Rotator
 *
 * @author Paweł Napieracz
 */
class Helper_Rotator {

    public static function banery() {
        $banery = Sql::FindAll('Rotator', 'status = 1 AND data_od < NOW() AND data_do > NOW()');
        $tabBanery = array();
        foreach ($banery as $v) {
            $tmp = array('obrazek' => $v->obrazek, 'tresc' => $v->tresc);
            $tabBanery[] = $tmp;
        }
        return $tabBanery;
    }

}

?>
